import axiosData from '@/api/axios';
import { getToken } from '@/utils/auth';
export default {
  productionInventory(params) {
    return axiosData.post('/v3/40089-process-v2/productionInventory/queryPageByCondition', params);
  },
  generateNo(noType) {
    return axiosData.get(`/v3/noService/configCode/generateNo?noType=${noType}&organizationNo=${getToken('organizationNo')}`);
  },
  add(params) {
    return axiosData.post('/v3/40089-process-v2/productionInventory/add', params);
  },
  edit(params) {
    return axiosData.post('/v3/40089-process-v2/productionInventory/edit', params);
  },
  del(params) {
    return axiosData.post('/v3/40089-process-v2/productionInventory/delListByIdList', params);
  },
  submitReview(params) {
    return axiosData.get(`/v3/40089-process-v2/productionInventory/submitReview`, { params });
  },
  regenerate(params) {
    return axiosData.get(`/v3/40089-process-v2/productionInventory/regenerate`, { params });
  }
};
